home *** CD-ROM | disk | FTP | other *** search
- global gphotoloclist, gpartslist
-
- on btncmd
- set gphotoloclist to [:]
- tell getAt(the windowList, 1)
- repeat with m = 1 to count(gpartslist)
- set locallist to [:]
- set myins to getAt(gpartslist, m)
- set num to getPropAt(gpartslist, m)
- addProp(locallist, #loc, the loc of sprite num)
- if the newmem of myins = the member of sprite num then
- if the pmode of myins = #face then
- addProp(locallist, #cast, 0)
- else
- addProp(locallist, #cast, 1)
- end if
- else
- addProp(locallist, #cast, 0)
- end if
- if the pmode of myins = #rgb then
- set rgbmem to the defmem of myins
- set nowrgblist to geteffectargs(rgbmem, #rgb)
- addProp(locallist, #rgb, nowrgblist)
- end if
- sort(locallist)
- if not (locallist = [:]) then
- set spn to value("#" & string(num))
- addProp(gphotoloclist, spn, locallist)
- end if
- end repeat
- end tell
- sort(gphotoloclist)
- if the shiftDown then
- tell the stage
- writeonedata()
- end tell
- else
- tell the stage
- writedata()
- end tell
- end if
- end
-